package cn.edu.gdpt.mobile213.mobile2121606097wjc0324;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {
    private EditText edttxtmainpartID;
    private Button btnmainbuy;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        btnmainbuy.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                int num=Integer.valueOf(edttxtmainpartID.getText().toString());
                Log.i("Tag","onClick:"+num);
            }
        });
    }

    private void initView() {
        edttxtmainpartID=(EditText) findViewById(R.id.edttxtmainpartID);
        btnmainbuy=(Button) findViewById(R.id.btnmainbuy);
    }
}